package org.yunai.swjg.server.module.item.template.feature;

import com.alibaba.fastjson.JSON;

/**
 * 装备实例属性接口
 * User: yunai
 * Date: 13-4-7
 * Time: 下午2:48
 */
public class EquipFeature implements ItemFeature {

//    /**
//     * 此feature对应的item
//     */
//    private Item item;
//    /**
//     * 装备附加属性
//     */
//    private EnumMap<ItemDef.EquipProps, Double> addOnProps;
//
//    public EquipFeature(Item item) {
//        this.item = item;
//        this.addOnProps = new EnumMap<ItemDef.EquipProps, Double>(ItemDef.EquipProps.class);
//
////        JSONObject obj = JSON.parseObject("");
//    }
//    /**
//     * 此feature对应的item
//     */
//    private Item item;
    /**
     * 攻击
     */
    private Double atk;
    /**
     * 防御
     */
    private Double def;
    /**
     * HP
     */
    private Double hp;
    /**
     * MP
     */
    private Double mp;
    /**
     * 攻速
     */
    private Double atkSpd;
    /**
     * 移动速度
     */
    private Double moveSpd;
    /**
     * 暴击率
     */
    private Double cri;
    /**
     * 闪避率
     */
    private Double dodge;
    /**
     * 反伤
     */
    private Double fanShang;
    /**
     * 分裂攻击
     */
    private Double cleave;
    /**
     * 免伤
     */
    private Double mianShang;

    public Double getAtk() {
        return atk;
    }

    public void setAtk(Double atk) {
        this.atk = atk;
    }

    public Double getDef() {
        return def;
    }

    public void setDef(Double def) {
        this.def = def;
    }

    public Double getHp() {
        return hp;
    }

    public void setHp(Double hp) {
        this.hp = hp;
    }

    public Double getMp() {
        return mp;
    }

    public void setMp(Double mp) {
        this.mp = mp;
    }

    public Double getAtkSpd() {
        return atkSpd;
    }

    public void setAtkSpd(Double atkSpd) {
        this.atkSpd = atkSpd;
    }

    public Double getMoveSpd() {
        return moveSpd;
    }

    public void setMoveSpd(Double moveSpd) {
        this.moveSpd = moveSpd;
    }

    public Double getCri() {
        return cri;
    }

    public void setCri(Double cri) {
        this.cri = cri;
    }

    public Double getDodge() {
        return dodge;
    }

    public void setDodge(Double dodge) {
        this.dodge = dodge;
    }

    public Double getFanShang() {
        return fanShang;
    }

    public void setFanShang(Double fanShang) {
        this.fanShang = fanShang;
    }

    public Double getCleave() {
        return cleave;
    }

    public void setCleave(Double cleave) {
        this.cleave = cleave;
    }

    public Double getMianShang() {
        return mianShang;
    }

    public void setMianShang(Double mianShang) {
        this.mianShang = mianShang;
    }

    public static void main(String[] args) {
        EquipFeature equipFeature = new EquipFeature();
        equipFeature.atk = 1D;
        equipFeature.def = 2D;
        equipFeature.hp = 3D;
        equipFeature.mp = 4D;
        equipFeature.atkSpd = 5D;
        equipFeature.moveSpd = 6D;

        System.out.println(JSON.toJSON(equipFeature));
    }
}
